<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>对象</title>
	<script type="text/javascript">


		function Car () {
			this.name='车';
			this.color='红';
			this.length;
			this.run = function  (argument) {
				alert("可以跑");
			}
			this.paoniu = function  () {
				alert(this.name+"可以泡妞");
			}
		}

		Audi = new Car();

		console.log(Audi);

		Audi.name = "奥迪";

		// Audi.paoniu();

		Audi.zairen = function  (argument) {
			alert("可以载人")
		}

		Audi.zairen();

		// alert(Audi.name);

		// BMW = new Car();

		// BMW.zairen();






	</script>
</head>
<body>
	
</body>
</html>